package test;

import simple.factory.method.*;

public class SimpleFactoryMethodMain {
    public static void main(String[] args) {
        PizzaStore pizzaStore = new NYPizzaStore(new SimplePizzaFactory());
        Pizza pizza = pizzaStore.orderPizza("cheese");
        System.out.println(pizza.getName());

        ChicagoPizzaStore chicagoPizzaStore = new ChicagoPizzaStore(new SimplePizzaFactory());
        Pizza pizza1 = chicagoPizzaStore.orderPizza("cheese");
        System.out.println(pizza1.getName());
    }
}
